export function createElementVNode(vm, tag, data, ...children) {
  if (data == null) {
    data = {};
  }
  return vnode(vm, tag, data.key, data, children);
}
export function createTextVNode(vm, text) {
  return vnode(vm, undefined, undefined, undefined, undefined, text);
}
function vnode(vm, tag, key, data, children, text) {
  return { vm, tag, key, data, children, text };
}

export function isSameNode(node1, node2) {
  return node1.tag == node2.tag && node1.key == node2.key;
}
